package com.ruoyi.message.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 群消息记录对象 group_message
 * 
 * @author ruoyi
 * @date 2023-10-19
 */
public class GroupMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 群消息id */
    private Long id;

    /** 发送者id */
    @Excel(name = "发送者id")
    private Long senderId;

    /** 群消息文本 */
    private String text;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String messageType;

    /** 已读？ */
    @Excel(name = "已读？")
    private Long unread;

    /** 群id
 */
    @Excel(name = "群id ")
    private Long groupId;

    /** 消息内容类型 */
    @Excel(name = "消息内容类型")
    private String messageTextType;

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSenderAvatar(String senderAvatar) {
        return this.senderAvatar;
    }

    public void setSenderAvatar(String senderAvatar) {
        this.senderAvatar = senderAvatar;
    }

    /** 消息内容类型 */
    @Excel(name = "发送者名字")
    private String senderName;
    /** 消息内容类型 */
    @Excel(name = "发送者头像")
    private String senderAvatar;
    /** 群名称 */
    @Excel(name = "群名称")
    private String groupName;

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }
    public void setMessageType(String messageType) 
    {
        this.messageType = messageType;
    }

    public String getMessageType() 
    {
        return messageType;
    }
    public void setUnread(Long unread) 
    {
        this.unread = unread;
    }

    public Long getUnread() 
    {
        return unread;
    }
    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }
    public void setMessageTextType(String messageTextType) 
    {
        this.messageTextType = messageTextType;
    }

    public String getMessageTextType() 
    {
        return messageTextType;
    }

    @Override
    public String toString() {
        return "GroupMessage{" +
                "id=" + id +
                ", senderId=" + senderId +
                ", text='" + text + '\'' +
                ", messageType='" + messageType + '\'' +
                ", unread=" + unread +
                ", groupId=" + groupId +
                ", messageTextType='" + messageTextType + '\'' +
                ", senderName='" + senderName + '\'' +
                ", senderAvatar='" + senderAvatar + '\'' +
                '}';
    }

    public String getSenderAvatar() {
        return senderAvatar;
    }
}
